# -*- coding: utf-8 -*-
"""
@Time : 2024/4/25 21:04
@Auth : Junjie Duan
@File : canvas_app.py
    -i https://pypi.tuna.tsinghua.edu.cn/simple
    https://emojipedia.org/
    https://streamlit-emoji-shortcodes-streamlit-app-gwckff.streamlit.app/
"""
import time

from ld import *






if __name__ == '__main__':

    ld_app = AuToLD()
    print(ld_app.get_list())
    ld_app.set_ldNum(0)
    #ld_app.set_screen_size(960, 540, 160)
    #ld_app.launch()


    # 耗时0.8s
    ld_app.findPic(pic_name='file.jpg', sim=0.95, center=True, drag=False)

    dt = time.time()
    # 0.93s
    ld_app.findTzPic(pic_name='file.jpg', drag=False)
    print(time.time()-dt)







